package com.xinyue.jpa;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
public class JpaAppTestMain {

	public static void main(String[] args) {
		SpringApplication application = new SpringApplication(JpaAppTestMain.class);
		ApplicationContext context = application.run(args);
		
		UserService userService = context.getBean(UserService.class);
		userService.saveUser();
		userService.queryUserByPage();
		userService.queryUserByAgePage();
		
		//测试结束后直接退出进程
		System.exit(0);
	}
}
